How can I determine if an OLE object is iconized using DXL?

I am writing a DXL script where I need to determine if an OLE object is displayed as editable information or an icon. I can determine this manually from Edit>OLE Object Properties>View so the information must be available. However, I have been unable to find a DXL command that provides this information. Is an undocumented command available?

I found two threads that discussed this topic, Link: Trying to find out OLE Object Properties and Link: Change from view OLE as icon. Neither thread answered the question and both are rather old so I am posting the question again hoping that a DXL command may now be available.
SystemAdmin - Mon Feb 18 12:53:33 EST 2013

Re: How can I determine if an OLE object is iconized using DXL?
llandale - Mon Feb 18 14:31:47 EST 2013

I don't know and don't see one in the doors.exe file.

However I suspect the follwing may be useful: I ran the following code on an object with two OLEs, one is an Icon; and while the Width/Height were unreliable (since the icon can be resized), I see an Icon OLE is FAR smaller (7731 vrs 885611):

EmbeddedOleObject    eoo
RichText                rt
string          Text, OLE
int                     iWidth, iHeight
 
Text    = richTextWithOle((current Object)."Object Text")
for rt in Text do
{  if (rt.isOle)
   {  eoo = rt.getEmbeddedOle
      print (string getOleWidthHeight(eoo,iWidth,iHeight))
      print "************* Ole:\t" iWidth "\t" iHeight "\n"
 
      OLE = oleRtf(eoo)
      print (length(OLE)) "\t" (OLE[0:200]) "\n"
   }
}


Results:

 

************* Ole:    60        47
7731    {\pict\wmetafile8\picwgoal900\pichgoal705 
0100090000035107000001002106000000000400000003010800050000000b0200000000050000
000c024b00600005000000090200000000050000000102ffffff00a5000000410bc6008800200
************* Ole:      552     258
885611  {\pict\wmetafile8\picwgoal8280\pichgoal3875 
010009000003304b030000001a4b03000000050000000b0200000000050000000c02de1a25391a
4b0300430f2000cc0000000401290200000000de1a253900000000280000002902000004010


-Louie

 

Re: How can I determine if an OLE object is iconized using DXL?
MichaelGeorg - Tue Feb 19 08:32:58 EST 2013

I've not tried it myself and it would be pretty intricate, but I think it would be possible to export the OLE object to Word an then use property DisplayAsIcon to detect if it is embedded as an icon or not.

- Michael